package service

import (
	"exercise/application/yiran/app/request"
	"github.com/gin-gonic/gin"
)

type loginService struct {
}

func (l loginService) Login(ctx *gin.Context, request *request.LoginRequest) interface{} {
	username := request.Username
	password := request.Password
	println(password)
	token, _ := NewJwtService().CreateToken(17, username, username, 12, 1, 1)
	return token
}

func NewLoginService() *loginService {
	return &loginService{}
}
